//
//  TSTeamItemView.swift
//  TSProfitProject
//
//  Created by TmmmS on 2019/11/24.
//  Copyright © 2019 TMS. All rights reserved.
//

import UIKit

class TSTeamItemView: UIView {

    var label : UILabel!
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        label = UILabel.init()
        label.font = UIFont.systemFont(ofSize: 14, weight: .medium)
        label.textColor = UIColor.hexadecimalColor(hexadecimal: "#282828")
        label.textAlignment = .center
        addSubview(label)
        label.snp.makeConstraints { (make) in
            make.left.right.centerY.equalToSuperview()
        }
    }
    
    func setupItem(value:String) {
        
        label.text = value
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

}
